<?php require __DIR__ . '/../inc_header.tpl.php';?>

<span class="layui-breadcrumb">
    <a href="">控制台</a>
    <a><cite>首页</cite></a>
</span>
<br><br>


<div class="layui-card">
    <div class="layui-card-header">应用模块</div>
    <div class="layui-card-body">
        
        <div style="padding: 20px; ">
            <div class="layui-row layui-col-space15">

                <?php
                foreach($module_installed as $row){
                ?>
                    <div class="layui-col-sm12 layui-col-md6" style="background-color: #F2F2F2;">
                        <a href="<?php echo  url([ $row['identifie']  ,'admin/index','index']);?>"  target="_blank" title="点击进入 “<?php echo $row['name'] ; ?>” 管理">
                        <div class="layui-card">
                            <div class="layui-card-header">
                                    <?php echo $row['name'] ; ?>
                                    <span class="layui-badge layui-bg-orange" style="position: absolute;right: 15px; top: 12px;"><?php echo $row['identifie']; ?></span>
                            </div>
                            <div class="layui-card-body"  style="height:100px" >                               
                                <div class="layui-row">
                                    <div class="layui-col-xs4 layui-col-md3">
                                        <img src="./application/<?php echo $row['identifie'] .'/'. $row['icon']; ?>" style="width:60px;height:60px" loading="lazy">
                                    </div>
                                    <div class="layui-col-xs8  layui-col-md9">
                                        <span style="height:50px;display: -webkit-box;overflow:hidden;-webkit-box-orient: vertical;-webkit-line-clamp: 2;color:#666;" title="<?php echo $row['description'] ; ?>"><?php echo $row['description'] ; ?></span>
                                    </div>
									<div style="text-align: center">
										<hr>进入 “<?php echo $row['name'] ; ?>” 管理
									</div>
                                </div>
                            </div>
                        </div>
                        </a>                           
						
						
                    </div>        
                <?php
                }
                ?>
            </div>
        </div>
        
    </div>
</div>

    
<?php require __DIR__ . '/../inc_footer.tpl.php';?>